﻿

IF EXISTS(SELECT * FROM SYSOBJECTS WHERE NAME='[TEMPLATESCORE]' AND xtype='U')
BEGIN
	DROP TABLE  [TEMPLATESCORE]
END

GO

IF EXISTS(SELECT * FROM SYSOBJECTS WHERE NAME='[TEMPLATE]' AND XTYPE='U')
BEGIN
	DROP TABLE  [TEMPLATE]
END
GO

IF EXISTS(SELECT * FROM SYSOBJECTS WHERE NAME='[TEMPLATETYPE]' AND XTYPE='U')
BEGIN
	DROP TABLE  [TEMPLATETYPE]
END
GO

IF EXISTS(SELECT * FROM SYSOBJECTS WHERE NAME='[GROUPUSER]' AND XTYPE='U')
BEGIN
	DROP TABLE [GROUPUSER]
END
GO

IF EXISTS(SELECT * FROM SYSOBJECTS WHERE NAME='[GROUP]' AND XTYPE='U')
BEGIN
	DROP TABLE [GROUP]
END
GO

IF EXISTS(SELECT * FROM SYSOBJECTS WHERE NAME='[SYSTEMUSER]' AND XTYPE='U')
BEGIN
	DROP TABLE  [SYSTEMUSER]
END
GO